
export default store => next => action => {
    const { dispatch } = store

    if (typeof action === 'function') {
        return action(dispatch)
    }
    
    // 执行 action
    next(action)
}